package com.ihome.excel.xlsx.test.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.ihome.excel.xlsx.annotation.ISBigDecimal;
import com.ihome.excel.xlsx.annotation.ISEmail;
import com.ihome.excel.xlsx.annotation.ISIdCard;
import com.ihome.excel.xlsx.annotation.ISMobile;
import com.ihome.excel.xlsx.annotation.ISNotEmpty;
import com.ihome.excel.xlsx.annotation.ISSeatPhone;
import com.ihome.excel.xlsx.annotation.StrLengthGt;
import com.ihome.excel.xlsx.annotation.StrLengthLt;

public class Customer {
    
   
    private Integer age;
    private String name;
    @ISBigDecimal(scale=2,roundMode=BigDecimal.ROUND_HALF_DOWN)
    private BigDecimal amount;
    @ISNotEmpty
    private Double height;
    @ISNotEmpty
    private Date birthDay;
    @StrLengthGt(length=10)
    private String address;
    @ISIdCard
    @ISNotEmpty
    private String cardNo;
    @ISMobile
    @ISNotEmpty
    private String telephoneNumber;
    @ISSeatPhone
    @ISNotEmpty
    private String seatPhoneNumber;
    @ISEmail
    @ISNotEmpty
    private String email;
    
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public BigDecimal getAmount() {
        return amount;
    }
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public Double getHeight() {
        return height;
    }
    public void setHeight(Double height) {
        this.height = height;
    }
    public Date getBirthDay() {
        return birthDay;
    }
    public void setBirthDay(Date birthDay) {
        this.birthDay = birthDay;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getCardNo() {
        return cardNo;
    }
    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }
    public String getTelephoneNumber() {
        return telephoneNumber;
    }
    public void setTelephoneNumber(String telephoneNumber) {
        this.telephoneNumber = telephoneNumber;
    }
    public String getSeatPhoneNumber() {
        return seatPhoneNumber;
    }
    public void setSeatPhoneNumber(String seatPhoneNumber) {
        this.seatPhoneNumber = seatPhoneNumber;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public String toString(){
        return this.age + ":" + this.amount + ":" + this.height + ":" + this.birthDay + ":" + this.address + ":" + this.cardNo + ":" + this.telephoneNumber + ":"
                + this.seatPhoneNumber + ":" + this.email;
    }

}
